#ifndef BARRIER_H
#define BARRIER_H

#include <QMainWindow> //包含头文件 QWidget 窗口类

namespace Ui {
class Barrier;
}

class Barrier : public QMainWindow
{
    Q_OBJECT // Q_OBJECT宏，允许类中使用信号和槽的机制

public:
    explicit Barrier(QWidget *parent = 0);
    ~Barrier();
    double num;

private slots:
    void on_pushButton_clicked();
    void timerEvent(QTimerEvent *e);
    void update_tf(std::vector<double> _new_tf);

private:
    Ui::Barrier *ui;
    int t1Id;
    std::vector<double> barrier_tf;

};

#endif // BARRIER_H
